/**
 * Created by Administrator on 2017/4/26.
 */

import React, { Component } from 'react';
import {
    AppRegistry,
    StyleSheet,
    Text,
    View
} from 'react-native';

// 接收组件在使用的时候传入的属性
export default class ReceiveCompoent extends Component{
    render(){
        return <View>
            <Text>姓名：{this.props.namep}</Text>
            <Text>年龄：{this.props.agep}</Text>
        </View>
    }
}